$.ajaxPrefilter(function (options) {
  options.url = `http://big-event-api-t.itheima.net${options.url}`

  // 配置请求头
  // 判断
  if (options.url.indexOf('/my/') !== -1) {
    options.headers = {
      Authorization:localStorage.getItem('token') || ''
    }
  }
  
})